#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpSocket>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_link_clicked();

    void on_pushButton_stop_clicked();

    void on_pushButton_send_clicked();

    void read_data();

    void connect_suc();

    void client_dis();


private:
    Ui::MainWindow *ui;
    QTcpSocket *tcpsocket;
    QString ip="192.168.11.1";
    QString port="8888";
};

#endif // MAINWINDOW_H
